setConversationTitle
open fun setConversationTitle(@Nullable conversationTitle: CharSequence): NotificationCompat.MessagingStyle(source)
Sets the title to be displayed on this conversation. May be set to null
.
This API's behavior was changed in SDK version P. If your application's target version is less than P, setting a conversation title to a non-null value will make isGroupConversation return true
and passing null
will make it return false
. This behavior can be overridden by calling setGroupConversation regardless of SDK version. In P and above, this method does not affect group conversation settings.
Return
this object for method chaining
Parameters
conversationTitle
Title displayed for this conversation